<?php

function getFaqContent($quizzName, $quizzType)
{
    $db = openConnection();    
    $query = "SELECT faq_quiz_id FROM faq_quiz WHERE name='" . $quizzName . "';";
    $query = queryDatabase($query, $db);
    $query = fetchResults($query);
    $query = "SELECT question, answer FROM faq WHERE faq_quiz_id='" . $query[0]['faq_quiz_id'] . "';";
    $query = queryDatabase($query, $db);
    return fetchResults($query);
}

?>